import { Routes, Route, Navigate } from 'react-router-dom'
import './App.css';
import Main from './pages/Main/Main';
import AddPage from './pages/Add/AddPage';
import Test from './pages/Test/Test';
import Loading from './component/Loading/index'
import GuoJiHua from './pages/Test/GuoJiHua'
function App() {
  return (
    <>
      <Routes>
        <Route path='main/*' element={<Main />} />
        <Route path='add/*' element={<AddPage />} />
        <Route path='test/*' element={<Test />} />
        <Route path='guojihua/*' element={<GuoJiHua />} />

        <Route path={'*'} element={<Navigate to='main/home' />} />
        {/* <Route path={'*'} element={<Navigate to='guojihua' />} /> */}
      </Routes>
      <Loading />
    </>
  );
}
export default App;
